package com.example.talkheart

import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
import com.example.talkheart.adapter.AppointAdapter

class TeacherActivity : AppCompatActivity() {
    private val appointStudentRecyclerView: RecyclerView by lazy { findViewById<RecyclerView>(R.id.appointStudentRecyclerView) }
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_teacher)

        val adapter = AppointAdapter(this)
        appointStudentRecyclerView.layoutManager = LinearLayoutManager(MyApplication.context)
        appointStudentRecyclerView.adapter = adapter

    }

    fun turnIntoAppointInfoActivity(intent: Intent){
        startActivity(intent)
    }
}